"""
@author: 一切、會恏
@file: get_data.py
@time: 2019/3/25 17:49
"""
from common.public.read_conf_file import ReadConfFile
from common.public import project_path
class GetData:
    '''可以用来动态的更改 删除  获取数据'''
    con = ReadConfFile()
    COOKIES = None
    # LOANID = None
    normal_user = con.readFile(project_path.con_path, "data", "normal_user")
    normal_pwd = con.readFile(project_path.con_path, "data", "normal_pwd")
    normal_member_id = con.readFile(project_path.con_path, "data", "normal_member_id")

    login_user = con.readFile(project_path.con_path, "data", "login_user")
    login_pwd = con.readFile(project_path.con_path, "data", "login_pwd")
    login_memberid = con.readFile(project_path.con_path, "data", "login_memberid")
    # print(normal_user,normal_pwd,normal_member_id)
#利用反射的方法来拿值
# print(getattr(GetData,"COOKIES"))#第一个参数是类名  第二个参数是类的属性的名字
# print(hasattr(GetData,"COOKIES"))#判断类中是否有这个属性  返回值是bool
# #设置类中的属性的值
# print(setattr(GetData,"COOKIES","qqqqqqq"))
# ##第一个参数是类名  第二个参数是类的属性的名字 第三个参数你要设置的参数的值
#
#
# #删除类中的属性的值(不常用)
# print(delattr(GetData,"COOKIES"))
# print(getattr(GetData,"COOKIES"))